package com.ruoyi.media.serverConfig.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务器配置业务对象 media_server_config
 *
 * @author dqw
 * @date 2023-03-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MediaServerConfigBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 服务器过期时间
     */
    private String expirationTime;

    /**
     * 服务器ip地址
     */
    private String serverIp;

    /**
     * 宝塔面板登录链接
     */
    @NotBlank(message = "宝塔面板登录链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String btUrl;

    /**
     * 宝塔账号
     */
    @NotBlank(message = "宝塔账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String btAccount;

    /**
     * 宝塔密码
     */
    @NotBlank(message = "宝塔密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String btPassword;

    /**
     * 服务器类型
     */
    private String serverType;

    /**
     * 服务器平台归属
     */
    private String serverPlatform;

    /**
     * 备注
     */
    private String remark;

    /**
     * 删除标识
     */
    private Integer delFlag;


}
